<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\jui\DatePicker;

/* @var $this yii\web\View */
/* @var $model app\modules\sysConfig\models\Smstemplate */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="smstemplate-form">

    <?php $form = ActiveForm::begin(); ?>

    <div class="col-sm-4">
        <?php echo $form->field($model, 'type')->dropDownList
               (['1' => '回访短息', '2' => '新标通知短息', '3' => '恭贺短信']); 
        ?>    
    </div>

    <div class="col-sm-4">
        <?php  echo $form->field($model, 'content')->textInput(['maxlength' => 30])?>
        <?php // echo $form->field($model, 'content')->radioList(['1'=>'男','0'=>'女']) ?>
    </div>
<div class="col-sm-4">
        <?=
                $form->field($model, 'createtime')->
                widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd'])
        ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'createuser')->textInput(['maxlength' => true]) ?>
</div>
    <div class="form-group-butons">
        <?= Html::submitButton($model->isNewRecord ? '创建' : '修改', 
            ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) 
        ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
